package com.frank.subject.domain.service;

import com.frank.subject.domain.entity.SubjectCategoryBo;

import java.util.List;

/**
 * @author Climb Zou
 * @version v0.0.1
 * @date 2024/1/19 17:18
 */
public interface SubjectCategoryDomainService {

    /**
     * 添加分类
     * @param subjectCategoryBO category bo
     */
    void insert(SubjectCategoryBo subjectCategoryBO);




    /**
     * 根据条件查询分类
     * @param subjectCategoryBO  params
     * @return category bo list
     */
    List<SubjectCategoryBo> queryCategory(SubjectCategoryBo subjectCategoryBO);

    /**
     * 更新分类
     * @param subjectCategoryBO params
     * @return updated result
     */
    Boolean updateCategoryByPrimary(SubjectCategoryBo subjectCategoryBO);

    /**
     * 删除分类
     * @param subjectCategoryBO params
     * @return delete result
     */
    Boolean deleteByPrimary(SubjectCategoryBo subjectCategoryBO);

    /**
     * 查询分类及标签
     * @param categoryId category id
     * @return categories
     */
    List<SubjectCategoryBo> queryCategoryAndLabel(String categoryId);
}
